package pl.koziolekweb.szkola.GHRysujBetter;

// GH-RysujBetter/RysujBetter.java
 
import java.awt.*;
import javax.swing.*;

public class RysujBetter extends JFrame {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static void main(String[] args) {
        new RysujBetter();
    }

    RysujBetter() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);

        MyPanelBetter panel = new MyPanelBetter();
          // panel bedzie sluchaczem myszki i klawiatury
        panel.addMouseListener(panel);
        panel.addMouseMotionListener(panel);
        panel.addKeyListener(panel);

        panel.setBackground(Color.BLACK);
        panel.setOpaque(true);
        panel.setPreferredSize(new Dimension(300,200));
        add(panel);

        pack();
        setVisible(true);
    }
}
